package com.contest.service;

import com.baomidou.mybatisplus.service.IService;
import com.contest.entity.GameNumbersRule;
import com.contest.quartz.data.ScheduleJob;
import com.contest.util.R;
import com.contest.ws.WsGameNumber;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 *  
 *
 * @author yfl
 * @email 617823298@qq.com
 * @date 2018-05-17 14:57:27
 */
public interface GameNumbersRuleService extends IService<GameNumbersRule> {

    R save(GameNumbersRule gameNumbersRule);

    R updateRule(GameNumbersRule gameNumbersRule);

    R deleteRule(String[] ids);
    void initCurrentDateGameRule();

    void getCurrentDateGameNumberInfos(HttpServletRequest request, Map msg);

    ScheduleJob getScheduleJob(GameNumbersRule gameNumbersRule , String startTime);

    WsGameNumber buyNumber(WsGameNumber wsGameNumber);
}
